package indi.zhifa.core.dataauth.sqlHelper.sqlNode;

public class NormalSqlPhase implements SqlAnalysisNode {

    StringBuilder sb;

    public NormalSqlPhase(){
        sb = new StringBuilder();
    }


    @Override
    public String toSql() {
        return sb.toString();
    }

    @Override
    public SqlAnalysisNode addChar(char c) {
        if(c == '$'){
            return new VarSqlPhase();
        }
        sb.append(c);
        return null;
    }
}
